USE [BABELE_SISM_SVIL]
GO

/****** Object:  Table [dbo].[SISM_EVENTI_LOG]    Script Date: 01/28/2014 16:50:08 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[SISM_EVENTI_LOG](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TIPO] [varchar](1) NOT NULL,
	[TIME] [datetime] NOT NULL,
	[TABELLA] [varchar](50) NOT NULL,
	[COLONNA_IDENTITY] [varchar](50) NOT NULL,
	[IDENTITY_TABELLA] [int] NOT NULL,
	[MSG_GENERATI] [bit] NULL,
	[UTENTE] [varchar](50) NOT NULL,
 CONSTRAINT [PK_SISM_EVENTI_LOG] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[SISM_EVENTI_LOG] ADD  CONSTRAINT [DF_SISM_EVENTI_LOG_TIME]  DEFAULT (getdate()) FOR [TIME]
GO


